I am using 'tail -f' to follow a log file as it's updated:
tail -f logfile
I next pipe the output of that to grep to show only the lines containing a search term ("org.springframework" in this case):
tail -f logfile | grep org.springframework
The third step I'd like to make is piping the output from grep to a third command, 'cut':
tail -f logfile | grep org.springframework | cut -c 25-
The cut command would remove the first 25 characters of each line for me if it could get the input from grep! (It works as expected if I eliminate 'grep' from the chain.)
I'm using cygwin with bash if that matters.
Thanks in advance for your assistance, O Mighty Scripting Gods, Ye!
-- LES
Edit: Actual results: When I add the second pipe to connect to the 'cut' command, the result is that it hangs, as if it's waiting for input (in case you were wondering).
Edit 2: Corrected typo in cut command