on 07-09-2013 8:47 AM
Hi,
I have a new requirement for a file sender communication channel .
My sender will pick up a text file .
But I need to delete the last line of the file before processing . Thats why I need to write a shell script before processing .
Thanks in advance.
Hi Apu,
Use this:
sed '$d' <file name>
/AB
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Apu,
Depending of your PI OS system:
Linux:
sed -n '$!p' file
Windows:
sed '$d'
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Apu,
you haven't described the problem you encountered with your command line script.
Best Regards
Kenny
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.