10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Good day to all,
I'd like to ask for your advice with regards to this.
I have here a file named TEST.tmp wherein the value inside is below;
But when I'm trying to use this in a simple command like;
for TESTING in $(cat... (4 Replies)
Discussion started by: asdfghjkl
2. Shell Programming and Scripting
I need to ssh remotely to a machine and cat a file assign the value to a variable
ssh email@example.com "valu='cat /export/home/test.md5'; echo "$valu"" | tee
++ cat config.txt
+ value='touch me'
+... (5 Replies)
Discussion started by: close2jay
3. Shell Programming and Scripting
I have a script to do a couple simple but repetitive commands on files that are provided to us. One of the things is to get rid of the line feeds. This is the section that is causing problems, i even cut this section into its own file to make sure nothing else was affecting it.
#!/usr/bin/bash... (4 Replies)
Discussion started by: oly_r
4. Shell Programming and Scripting
I am facing an issue with mget command, below are the details
The following commands are in a batch file "abc.ctl"
I use this file as a parameter for an sftp command
sftp -b abc.ctl -oIdentityFile=$myserver -oPort=$myport >>... (0 Replies)
Discussion started by: saurabh_mh
5. Shell Programming and Scripting
We have shell script (in ksh) which reads the records from a csv file line by line and does some operation. We have below command to read the file (CSV has the absolute path of files stored on a server something like SER/IMP/TEST/2010/12/123465.1).
for i in $P_FILES... (2 Replies)
Discussion started by: shreevatsau
6. UNIX for Dummies Questions & Answers
Im trying to create a command template here. how can i issue this long command in one enter?
echo -e "\nIssue or Request - Analysis Summary \n\nMemory Utilization Utilization Threshold\n\nResolution Summary\n\n1. check Server Info";echo "$(uname -a;uptime;date)"; echo -e "\n\n2. check... (9 Replies)
Discussion started by: jinslick25
7. Shell Programming and Scripting
so problem is:
I have a file that reads:
1 and 2
3 and 4
5 and 6
I was using for loops to run through this information.
for i in `cat 123`
shouldn't the output come as
1 and 2 (3 Replies)
Discussion started by: foal_11
8. Emergency UNIX and Linux Support
I have list of files in my current directory
I don't want to open first and last file. i.e (abc.txt and 123_ex_csv)
cat *.csv, but it won't work.
Can anyone tell me the proper regex only in cat
... (2 Replies)
Discussion started by: pritish.sas
9. Shell Programming and Scripting
So I sorted my file as I was supposed to:
sort -n -r -k 2 -k 1 file1 | uniq > file2
and when I wrote
> cat file2
in the command line, I got what I was expecting, but in the script itself
sort -n -r -k 2 -k 1 averages | uniq > temp
It wrote a whole... (21 Replies)
Discussion started by: shira
10. UNIX for Dummies Questions & Answers
Function 'mmin' is not in my unix, what is the other alternative to find files created/modified in last 10 minutes.
find . -min -10
find: bad option -min
find: path-list predicate-list
Thank you (1 Reply)
Discussion started by: Mohee