10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have several line in a text file. for example
I like apple;
I like apple
I like orange;
Output: I like apple
I try to useif grep -q "!\;$"; then (Not work)
Please use CODE tags when displaying sample input, sample output, and code segments (as required by forum rules). (1 Reply)
Discussion started by: cmdcmd
2. Shell Programming and Scripting
How can I extract digits at the end of a string in UNIX shell scripting or perl?
What can I do here? Many thanks.
cat file.txt | sed "s/.txt$//" | ........
13 (11 Replies)
Discussion started by: mingch
3. Shell Programming and Scripting
Since today, with csh or tcsh, if I do 'ls files* > list',
every lines end with an extra space!
What can I do to go back when there was no extra space?
If I change to bash, there's no extra space.
---------- Post updated at 03:19 PM... (1 Reply)
Discussion started by: trogne
4. Shell Programming and Scripting
How to add trailer record at the end of the flat file in the unix ksh shell scripting
can you please let me know the procedure
Srikanth (3 Replies)
Discussion started by: srikanth_sagi
5. Shell Programming and Scripting
Hi friends ,
I want to know how does a shell script recognize the end of a line? . i have hunddres of proccedure to test where i want to ingnore the comments which starts with "--" .. it can start from the middle of the lines also. for example::
select * from table1; -- getting... (5 Replies)
Discussion started by: neelmani
6. Shell Programming and Scripting
As i am new to this forum i dont really know where to place this doubt i am facing ,Please consider this
In this code i am connecting two time to two different server / database and getting the .sql file
where am i going wrong please guide..... me.
thanks a lot
if ; then
echo... (2 Replies)
Discussion started by: oracle_coorgi
7. Shell Programming and Scripting
I have a file (old.txt) that I need to copy into another file (new.txt).
Each line on old.txt ends with CR/LF but the position of CR/LF varies from one record to another.
I need to copy each line of record to new.txt and move CR/LF in pos 165.
Can I use awk to achieve this? How?... (8 Replies)
Discussion started by: udelalv
8. Shell Programming and Scripting
I would like to learn shell scripting in UNIX. Can any one please give me the support and share the information/documents with me.
If any documents please post it to firstname.lastname@example.org
Thanks in advance...!!! (3 Replies)
Discussion started by: aswani_n
9. Shell Programming and Scripting
I have written a korn script (code pasted below). It is giving the error while debugging "new.sh: syntax error at line 62: `end of file' unexpected".
I have re-written the whole code in VI and explored all help related to this error on this Unix forum and tried it. Somehow, I could... (7 Replies)
Discussion started by: schandrakar1
10. Shell Programming and Scripting
Hi All ,
I am new to shell scripting.
i have a shell script(which is executed as a super user) , i want to it to do one more job for me. ie mounting a directory over other using lofs .
i have done it manually using
1) using mount command
mount -F lofs /export/home/dju /dju
2)... (4 Replies)
Discussion started by: meet123321