Sponsored Content
Full Discussion: Having issues with cat
Top Forums Shell Programming and Scripting Having issues with cat Post 302544300 by Xterra on Wednesday 3rd of August 2011 11:48:44 AM
Old 08-03-2011
I guess I got it!

Code:
cat `ls *.dis | sort -n -k1.6 | sed -e 's/;/;\n/g'`

Thanks !!
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Cat and vi query

Hi experts, I have a log file, i tried to see it with cat abc.log|pg. Since it has lacs of rows, I wanted to know how can i navigate to a particular date row. Also with vi how can I navigate. Thanks in advance (1 Reply)
Discussion started by: shaan_dmp
1 Replies

2. UNIX for Dummies Questions & Answers

newbie need help on cat

1. what do the following commands do (give logic and concise description) a. cat 1> file-A 2> file-B 0< file-C b. cat 2> file-B 0< file-C 1> file-A c. cat 1> file-A 0< file-C 2>&1 d. cat 0<file-C | sort 1> file-A 2> /dev/null e. cat 2> file-B 0< file-C | sort 1> file-A 2> /dev/null (1 Reply)
Discussion started by: chitti76
1 Replies

3. UNIX for Dummies Questions & Answers

Difference between cat , cat > , cat >> and touch !!!

Hi Can anybody tell the difference between Difference between cat , cat > , cat >> and touch command in UNIX? Thanks (6 Replies)
Discussion started by: skyineyes
6 Replies

4. Shell Programming and Scripting

for i in `cat myname.txt` && for y in `cat yourname.txt`

cat myname.txt John Doe I John Doe II John Doe III ----------------------------------------------------------------------- for i in `cat myname.txt` do echo This is my name: $i >> thi.is.my.name.txt done ----------------------------------------------------------------------- cat... (1 Reply)
Discussion started by: danimad
1 Replies

5. Shell Programming and Scripting

cat in the command line doesn't match cat in the script

Hello, 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 cat file2 It wrote a whole... (21 Replies)
Discussion started by: shira
21 Replies

6. UNIX for Dummies Questions & Answers

for cat help

Hi there, I have the following problem. I have a csv file which looks like 'AGI,ABJ,Y,Y,Y,None,EQUATION,ANY,ANY,None,' 'AGI,ABJ,Y,Y,Y,None,EQUATION HEAVY,ANY,ANY,None,' 'AGI,ABJ,Y,Y,Y,None,VARIATION,ANY,ANY,None,' but I do this for ab in $(cat test.csv); do echo $ab; done in the... (4 Replies)
Discussion started by: sickboy
4 Replies

7. UNIX for Dummies Questions & Answers

Cat Help needed

Hi, I am unable to use a basic script in cygwin. Please help me out. Script used : #!/bin/bash echo "Lucent MSC1" echo "===========" echo "Orig_MSCID Summary Top 10" cat k1.txt | grep -i orig_mscid | sort | uniq -c echo "Hourly Summary" cat k1.txt | grep "#" | cut -c 10-11 | uniq... (7 Replies)
Discussion started by: vanand420
7 Replies

8. UNIX for Dummies Questions & Answers

Cat and variables

I've been having trouble with cat and variables. If I do the following: var1=filex cat $var1 I get the contents of the file named filex If I do var2="X-0101\ 2-10-2013.txt" cat "$var2" I get cat : cannot open X-0101\ 2-10-2013.txt. I have tried to do cat $var2 without quotes as... (8 Replies)
Discussion started by: newbie2010
8 Replies

9. UNIX for Dummies Questions & Answers

Cat with << >>

Hi, When I was analyzing the code I got below line. cat - << 'EOF' >> ${FILE PATH} I surfed net to understand but I couldn't get what is about. Please help me out. (2 Replies)
Discussion started by: stew
2 Replies
Msgcat(3pm)						User Contributed Perl Documentation					       Msgcat(3pm)

NAME
Locale::Msgcat - Perl extension for blah blah blah SYNOPSIS
use Locale::Msgcat; $cat = new Locale::Msgcat; $rc = $cat->catopen(name, oflag); $msg = $cat->catgets(set_number, message_number, string); $rc = $cat->catclose(); DESCRIPTION
The Locale::Msgcat module allows access to the message catalog functions which are available on some systems. A new Locale::Msgcat object must first be created for each catalog which has to be open at a given time. The catopen operation opens the catalog whose name is given as argument. The oflag can be either 0 or NL_CAT_LOCALE (usually 1) which is the recommended value. The catgets message retrieves message_number for the set_number message set, and if not found returns string. The catclose function should be used when access to a catalog is not needed anymore. EXAMPLES
use Locale::Msgcat; $cat = new Locale::Msgcat; unless ($cat->catopen("whois.cat", 1)) { print STDERR "Can't open whois catalog. "; exit(1); } printf "First message, first set : %s ", $cat->catgets(1, 1, "not found"); unless ($cat->catclose()) { print STDERR "Can't close whois catalog. "; exit(1); } The above example would print the first message from the first message set found in the whois catalog, or if not found it would print "not found". AUTHOR
Christophe Wolfhugel, wolf@pasteur.fr SEE ALSO
catopen(3), catclose(3), catgets(3), perl(1). perl v5.14.2 1999-11-15 Msgcat(3pm)
All times are GMT -4. The time now is 11:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy