The code:
is sending the output of the ls command onto the next command's input (stdin) rather than to the display.
The:
causes the shell to treat the following line as it it was on the same line, e.g.:
is the same as:
The line:
causes each filename from the ls command to be used to set the variable ${filename} which can then be used in the code between the "do" and "done". The "IFS=" sets the separator character that is used to differentiate between one filename and the next.
If the separator is taken to be a space then the following would do the same but by replacing spaces with commas and then using a comma as the separator:
Hi,
on ksh
What does the following do?
grep -v "toolbox" $home_oracle/.profile >$home_oracle/.profile.$$ Thanks.
Please use CODE tags as required by forum rules! (3 Replies)
Hi
I use the following compare
if }" == *"$vl"* ]]; then ...
Can anyone tell me, how to code the compare for unequal? I got no results from google searches.
Any hint or tip is welcome.
Regards
Lazy (5 Replies)
When editing a file, vi displays a special character as ^L. Can you tell me the escaped character to be used in awk? And can that escaped character be used in a regexp in both sed and awk? (7 Replies)
1.) I am to write scripts that will be phasetest folder in the home directory.
2.) The folder should have a set-up,phase and display files
I have written a small script which i used to check for the existing users and their password.
What I need help with:
I have a set of questions in a... (19 Replies)
I have this:
\2009_may\05-04-2009\05-04-2009(74)
\2009_may\05-04-2009\05-04-2009(74)\05-04-2009(74)_0-999
\2009_may\05-04-2009\05-04-2009(74)_left
\2009_may\05-04-2009\05-04-2009(74)_left\05-04-2009(74)
\2009_may\05-04-2009\05-04-2009(74)_right... (3 Replies)
Hi,
In the shell script, i need to remove the special charater "\" with "\\". For example, i need to replace "D:\FXT\ABC.TXT" with "D:\\FXT\\ABC.TXT".
However, when trying to do something like , i get the below error :-
-->echo "D:\FXT\ABC.TXT" | sed -e 's#\#\\#g'
sed: 0602-404 Function... (7 Replies)