Sponsored Content
Full Discussion: Issue with Grep
Top Forums UNIX for Dummies Questions & Answers Issue with Grep Post 302960856 by RudiC on Friday 20th of November 2015 09:45:02 AM
Old 11-20-2015
Please use code tags as required by forum rules!

We can't see multiple spaces in your code/result posts as the code tags are missing. I guess your source file has Oct 1 with one space, while the +"%a %b %_d" will have two. From man date: Try %-d (no padding).
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

issue with grep

using grep, i have a file emp.lst, and i want all those records where "S" or "s" (capital or small) is not there i used this grep emp.lst when i use grep emp.lst i am getting rows with S..but why negate (^) is not working? (3 Replies)
Discussion started by: soujanya_srk
3 Replies

2. UNIX for Dummies Questions & Answers

Issue with grep

I have a file that has the following: 591066 100.0 591066 100.0 591066 100.0 591066 100.0 591066 100.0 591066 100.0 591066 100.0 591066 100.0 591066 100.0 591066 100.0 591066 100.0 ... (5 Replies)
Discussion started by: Pablo_beezo
5 Replies

3. Shell Programming and Scripting

Grep Issue

<record> <set> <termId>1234</termId> <termType>First</termType> </set> <set> <termId>5678</termId> <termType>Second</termType> </set> </record> This is saved in record.xml Hi I have this sample XML that i am grepping using a shell program. The objective of the task is - based... (7 Replies)
Discussion started by: revertback
7 Replies

4. Shell Programming and Scripting

grep issue

The below command is not working stackmem="$(pmap $1 | grep -i '' | awk '{print $2}'| tr -d ' K')" I need to grep strictly for ----> Regards, Mohtashim (2 Replies)
Discussion started by: mohtashims
2 Replies

5. UNIX for Dummies Questions & Answers

Grep issue

more Hello.txt it was a sunny way and i was about to go home. I need to grep and redirect to a new file all the text between 'sunny' and 'go' string above. Note: There may be multiple lines in between the string i need to grep between. If there are multiple 'go' strings it should grep till... (9 Replies)
Discussion started by: mohtashims
9 Replies

6. Shell Programming and Scripting

Grep issue

Hi All I have a file containing following records: $HEW_TGT_DB2_USER=hbme_bi2 $prmAttunityUser=ais $DS_USER=hbme_bi2 $prmStgUser=hbme_bi2 $prmuser=hbme_bi2 $prmStgPass=hbme_bi2 $prmpwd=hbme_bi2 $prmAttunityUser=ais Say suppose the name of the file is test4.txt When i fire this... (2 Replies)
Discussion started by: vee_789
2 Replies

7. Shell Programming and Scripting

Issue in grep

i have following pattern in file s6:s2 s2:s4 s1:s2:s3:s4:s5:s6 s1 . . Now i want to find occurence of each record in file like s6:s2 occurs twice {once in first record and both occur in 3 record as well} so output should be s6:s2 2 s2:s4 2 s1:s2:s3:s4:s5:s6 :1 s1 : 2 ... (7 Replies)
Discussion started by: sharad.40216
7 Replies

8. Shell Programming and Scripting

Grep issue

Hi Guys, I am new to shell scripting. Need help on grep command. I had a file called file.log which contain below statements. 12 Nov 2013 14:12:17,756 INFO security - Userid: raja, Saved File Instance, Name: , Registry: 23 Nov 2013 14:14:11,777 INFO security - Userid: raja, Saved... (7 Replies)
Discussion started by: Vinoth Kumar G
7 Replies

9. UNIX for Dummies Questions & Answers

Grep issue

HI, I have a command to check a license file. License_print. In that file you get the headlines and all different licenses. Now i want to have things extracted from it. so i do like following: license_print | grep -iw -e "user" -e "admin" But i donīt want all lines where user is... (11 Replies)
Discussion started by: Tzwaj
11 Replies

10. Shell Programming and Scripting

Issue with grep

Hello, I have an input file that looks like so: LDLR LDLRAD4 VLDLR when I grep "LDLR" I get an output of: LDLR LDLRAD4 VLDLR Since all names have "LDLR" included within them, but all I want the output to be is LDLR I know it can work if I surround the words with pipes for... (5 Replies)
Discussion started by: Rabu
5 Replies
lltag_config(5) 						File Formats Manual						   lltag_config(5)

NAME
config - Configuration file for lltag DESCRIPTION
The following options may be stored in /etc/lltag/config or the user's $HOME/.lltag/config, or in any file passed with --config. Such a configuration file may also be generated with --gencfg. Obtaining tags format = "string" Add a user-defined format [-R]. Might be used multiple times. Default is to guess if no user-defined formats and no default field values are given. guess = <0/1> Try to guess if user-defined formats do not match [-G]. Default is 0 (disabled) when no user-defined formats and no explicit values are given. tag = <TAG=value> Add an explicit tag [--tag]. Might be used multiple times. Tweaking filename parsing no_path = <0/1> Do not use file path when matching filename [-p]. Default is 0 (disabled). spaces = <0/1> Allow no or multiple spaces [--spaces]. Default is 0 (disabled). Cleaning obtained tags edit = <0/1> Edit tags immediately [--edit]. Default is 0 (disabled). maj = <0/1> Upcase first letters of words in tags [--maj]. Default is 0 (disabled). regexp = "s/from/to/" Replace from with to in all tags. title,number:s/from/to/ replaces in title and number tags only. Might be used multiple times [--regexp]. Default is to not apply any regexp. sep = "string" Replace |-separated strings with space in tags. Default is to not replace any separator. Configuration of tag application type = <mp3|ogg|flac|none> Force mp3, ogg of flac instead of by-extension detection [--mp3, --ogg and --flac]. Default is none. clear_tags = <0/1> Clear all tags of audio files. [--clear]. Default is 0 (disabled). append_tags = <0/1> Append tags only instead of replacing old ones. [--append]. Default is 0 (disabled). no_tagging = <0/1> Do not actually tag files [--no-tagging]. Default is 0 (disabled). preserve_time = <0/1> Preserve file modification time during tagging [--preserve-time]. Default is 0 (disabled). Renaming rename_format = "string" Rename file according to format [--rename]. Default is to not rename. rename_min = <0/1> Lowcase tags before renaming [--rename-min]. Default is 0 (disabled). rename_regexp = "s/from/to/" Replace from with to in all tags before renaming. title,number:s/from/to/ replaces in title and number tags only. Might be used multiple times [--rename-regexp]. Default is to not apply any regexp. rename_sep = "string" Replace spaces with a string in tags before renaming [--rename-sep]. Default is to not replace any separator. rename_slash = "string" Replace slashes with a string in tags before renaming [--rename-slash]. Default is to replace with a dash. rename_ext = <0/1> Assume the rename format provides an extension [--rename-ext]. Default is 0 (disabled). Miscellaneous dry_run = <0/1> Do nothing but show what would have been done [--dry-run]. Default is 0 (disabled). yes = <0/1> Tag without asking for confirmation when guessing and rename without asking for confirmation [--yes]. Default is 0 (disabled). ask = <0/1> Always ask for confirmation before tagging [--ask]. Default is 0 (disabled). recursive = <0/1> Recursively traverse all given subdirectories [-R]. Default is 0 (disabled). verbose = <integer> Message verbosity level [-v and -q]. Default is 0 (only important messages). Other possible values are 1 (show usage information when a menu is displayed for the first time) and 2 (always show usage information before a menu appears). CDDB configuration cddb_server_name = hostname Change the CDDB server name. Default is www.freedb.org. cddb_server_port = <port> Change the CDDB server port. Default is 80 (HTTP). SEE ALSO
lltag(1) The config template file provided within the documentation directory. AUTHOR
Brice Goglin NOVEMBER 2006 lltag_config(5)
All times are GMT -4. The time now is 10:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy