Search Results

Search: Posts Made By: vickysood
8,889
Posted By RudiC
Try this: awk '$1 == "Name"; $4 < 7000 {print |...
Try this:
awk '$1 == "Name"; $4 < 7000 {print | "sort -k4"}' file
Name tDesignation tDepartment tSalary
Thomas Manager Sales 5000
Jason Developer Technology 5500
Vicky...
8,889
Posted By sea
I slightly modified your code... Was not my...
I slightly modified your code...
Was not my first attempt, just one of the... lets do this variant with the current variable... moments...

I have no idea WHY this works, because I wanted to...
8,889
Posted By sea
Dont do BOLD for code. Do CODE for code. ...
Dont do BOLD for code.
Do CODE for code.

And proper writing helps.... tSalary....
Or use grep -i ...

And btw...
Your code would not show the 'header' on occasion, but always...
Unless your...
8,889
Posted By sea
Something like this? [~/tmp] 0 $ awk '$4 <=...
Something like this?
[~/tmp] 0 $ awk '$4 <= 7000 {print}' "file.txt" | grep -v tSalary | sort -k 4

Thomas Manager Sales 5000
Jason Developer Technology 5500
Vicky DBA Technology 6000...
82,047
Posted By chipcmc
-All the tab spaces got removed and treated as...
-All the tab spaces got removed and treated as single blankspace.
cat file | sed "s/\t\t*/ /g"
All the blank spaces were removed and treated as single blank space.
cat file | sed "s/ */ /g"...
Showing results 1 to 5 of 5

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