Use **Top** command which repeats 5 times, pipe the results to **Grep** and **Cut** command to print the PID for *init* process on your screen. 

Hi all, I have my line of code:

```
top -n 5 | grep "init" | cut -d" " -f3 > topdata

```

But I cannot see any output to verify that it's working.
Also, the next script asks me to use a one line command which shows the total memory used in megabytes. I'm supposed to pipe results from Free to Grep to select or filter the lines with the pattern "Total:" then pipe that result to Cut and display the number representing total memory used. So far:

```
free -m -t | grep "total:" | cut -c25-30

```

Also not getting any print return on that one. Any help appreciated.