10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Here's my code.
21 if ; then
22
23 ls addr*.tmp | while IFS= read -r entry; do # Starts Reading .cfg files one by one ...
24 echo $entry
I get the below error at line number 21
line 21:
Can you tell me how can i alter my code to avoid the error ? (3 Replies)
Discussion started by: mohtashims
3 Replies
2. Shell Programming and Scripting
Hi,
I am using awk here.
Inside an awk script, I have a variable which contains a very long XML data in string format (500kb).
I want to pass this data (as argument) to curl command using system function.
But getting Too many arguments error due to length of string data(payloadBlock).
I... (4 Replies)
Discussion started by: cool.aquarian
4 Replies
3. UNIX for Dummies Questions & Answers
kindly some one pls let me know what is the prb with the code. tired of debugging. psl let me know the details on resolution
#!/bin/bash
echo enter name
read name
if || ] ; then
echo $name
else
echo none
fi (4 Replies)
Discussion started by: anandpasunoori
4 Replies
4. Shell Programming and Scripting
Hi,
i have a file.txt with data
Bangalore
Chennai
Hyd
filename of the script is: new.sh
result=`cat file.txt | grep $1`
if
then
echo pass
else
echo fail
fi
i am executing the file in the cmd line as "sh new.sh Bangalore"
o/p is pass
if i give "sh new.sh delhi"
o/p is... (6 Replies)
Discussion started by: harsha85
6 Replies
5. Shell Programming and Scripting
Hello, I've got this little script that gets a bunch of comics and puts them in an html file. However, when I check that the comic URL is there and that it's a new one, I get the "too many arguments" error. The script is this:
CADURL=`curl --silent http://www.cad-comic.com/cad/ | grep -o... (10 Replies)
Discussion started by: killer54291
10 Replies
6. UNIX for Dummies Questions & Answers
Hi !
I am woking on Solaris 5.10 and face a problem sometimes when i try to open files in the vi editor .
Sometime when the file is big i am not able to view the file in vi and i get the error like
I guess vi have some line size setting and if the lines are ,longer than that... (4 Replies)
Discussion started by: Paarth
4 Replies
7. Shell Programming and Scripting
I need help. I have created my script for a simple calculator but my multiplication operator does not work. This is the the code:
#!/bin/bash
echo "Enter number1"
read Number1
echo"Enter number2"
read Number2
echo"Operator is *"
read opr
if
then
expr $Number1 \*... (1 Reply)
Discussion started by: Pauline mugisha
1 Replies
8. UNIX for Dummies Questions & Answers
Hi Gurus,
I have a big file having around 5000 lines. What I need to do is as below.
$cat myfile
aaaa
bbbb
ccc
ddd
...
I want the output to be as below:
'aaaa,'bbbb','cccc'....
For this I have written something like this
code:
vi sac.txt |nawk '{printf NR","}'>ss
code: (2 Replies)
Discussion started by: thana
2 Replies
9. UNIX for Dummies Questions & Answers
Hi everyone,
I know this sounds stupid but on my Sun solaris machine I have csh script that finds all files 7 days older and then moves it to another area. The find works but the move I get "Arguments too long". I know that in c shell can not handel more 1706 arguments.
Can anyone give... (2 Replies)
Discussion started by: Peterh
2 Replies
10. UNIX for Dummies Questions & Answers
I'm trying to tranfer files via ftp form UNIX to Linux and vice versa.
When I tried mget command I received this message: "arguments too long".
What should I do to transfer multiple files?????? (2 Replies)
Discussion started by: rrivas
2 Replies
suspend(1) User Commands suspend(1)
NAME
suspend - shell built-in function to halt the current shell
SYNOPSIS
sh
suspend
csh
suspend
ksh
suspend
DESCRIPTION
sh
Stops the execution of the current shell (but not if it is the login shell).
csh
Stop the shell in its tracks, much as if it had been sent a stop signal with ^Z. This is most often used to stop shells started by su.
ksh
Stops the execution of the current shell (but not if it is the login shell).
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
csh(1), kill(1), ksh(1), sh(1), su(1M), attributes(5)
SunOS 5.10 15 Apr 1994 suspend(1)