Search Results

Search: Posts Made By: S. BASU
Forum: Red Hat 01-13-2015
2,562
Posted By S. BASU
Tried setting the line size using myriad...
Tried setting the line size using myriad commands. However I keep getting the error message 'linesize option not a valid number' which is really weird since I am giving 400 which is definitely a...
Forum: Red Hat 01-13-2015
2,562
Posted By S. BASU
Thanks for that Carlo. I'm however stuck because...
Thanks for that Carlo. I'm however stuck because echo $sqloutput doesn't return anything except a '>'

Furthermore, I can't seem to get out of that prompt
Forum: Red Hat 01-13-2015
2,562
Posted By S. BASU
Displaying command return in one line
Hello all

I have a query (SQL) that returns a rather long field from an Oracle database. The field in question is defined on 400 characters but all these 400 cannot be displayed by the echo...
1,482
Posted By S. BASU
Thanks a lot in2nix4life:b::) This works the...
Thanks a lot in2nix4life:b::)
This works the best for me since ls -l on its own returns too much info. where as I want just the file name.

The find command appends unwanted info. as well.

I...
1,482
Posted By S. BASU
Reading filenames with spaces
Hello

I've got a certain no. of files in a directory whose names I'm reading and redirecting into a temporary text file using the command below:

ls -l | grep ^- | awk '{print $9}'However,...
2,972
Posted By S. BASU
Again... works like a charm.. Thanks a lot
Again... works like a charm.. Thanks a lot
2,972
Posted By S. BASU
That was exactly it. With just the semicolon the...
That was exactly it. With just the semicolon the command failed and I thus though maybe Corona had left the semi colon after awk inadvertently.

Now that I've put the semicolon within quotes, it...
2,972
Posted By S. BASU
Hello Corona Thank you for your reply. Here...
Hello Corona

Thank you for your reply. Here are more details:

Command used:

awk -F '{ for(N=1; N<=NF; N++) sub(/^[ \r\n\t]*$/, "", $N); } 1' OFS=";" file1 > file2
Output:...
2,972
Posted By S. BASU
Hello Corona Your command does not seem to...
Hello Corona

Your command does not seem to work. I admit I'm pretty new to UNIX so I copied it as it is only substituting input file and output file.

Is there anything else that needs to be...
2,972
Posted By S. BASU
Here is the content of the file: AAA;1; ; ;...
Here is the content of the file:

AAA;1; ; ; ; ;XXX
BBB;2; ; ; ; ;YYY Code tags for code, please.
2,972
Posted By S. BASU
Did you mean the command? sed -i...
Did you mean the command?
sed -i 's/;[[:space:]]*;/;;/g' <filename>
If so it didn't work? FYI. originally i was depicting the space with literally a space or ' ' and so the command took the form:...
2,972
Posted By S. BASU
Replacing multiple spaces in flat file
Greetings all

I have a delimited text file (the delimiter is ';') where certain fields consist of many blanks e.g. ; ; and ; ;

Before I separate the data I need to eliminate these blanks...
1,283
Posted By S. BASU
Thanks guys. The loop definition by Scrutinizer...
Thanks guys.
The loop definition by Scrutinizer and the mv command by Thobias together helped.

Much appreciated
1,283
Posted By S. BASU
Renaming CERTAIN files
Hello

I have a folder with around a 100 files. Some of these files have an extension of .DAT.csv and the others are simply .DAT
I need to rename all those files ending in .DAT.csv to .DAT. I...
Showing results 1 to 14 of 14

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