Got a quick question here:
Say I’m trying to separate the lines of a group of files, they all look like this:
pid text number
And I want to separate the lines into different files using the pid, how can I achieve this?
So far, I’ve tried something like:
cat files | grep '\([0-9]\{3\}\)' > $1.txt
That ofcourse, doens’t work.. any ideas?
The file with pids :
The awk code :
The output of
ls: