Search Results

Search: Posts Made By: life_is_good
1,583
Posted By life_is_good
#!/bin/bash for i in $@ do test=`echo...
#!/bin/bash

for i in $@
do
test=`echo ${i#*file}`
echo "processing" $i
echo $test
done

Try this one, using $test, you can access 1,2 later in your script.
Hope this helps! :)
41,779
Posted By life_is_good
Hi Scrutinizer, Thank you for your help,...
Hi Scrutinizer,

Thank you for your help, though still I am not getting how am I going to use the input from standard input later in my script?

Could you suggest me some good resource to...
41,779
Posted By life_is_good
Thats right I would like to put the contents of...
Thats right I would like to put the contents of standard input
to a file

but with this code I am not getting what value would I use to put it into a file

My actual code is something like this...
41,779
Posted By life_is_good
---------- Post updated at 11:41 AM ----------...
---------- Post updated at 11:41 AM ---------- Previous update was at 11:39 AM ----------




Thank you Scrutinizer that worked!!

though, I did not understand what does this do?
exec 3<&0...
41,779
Posted By life_is_good
Hi, I am new to shell scripting, and I was...
Hi,

I am new to shell scripting, and I was trying the same thing where I want to read whether I have entered more than one line or not,
i.e. I have a command called grader
grader "add1
> add2"...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 02:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy